<%@ page
	import="gmusic.bo.PaysBean,gmusic.bo.ArtistBean,gmusic.bo.ReleaseBean,gmusic.dao.*,gmusic.dao.oracle.*,java.util.Vector"%>
<%@ page errorPage="erreur.jsp"%>

<jsp:include page="include/entete.jsp" flush="true">
	<jsp:param name="titre" value="Liste des albums" />
	<jsp:param name="sousTitre" value="Liste de tous les albums" />
</jsp:include>
<br />

<%
	GroupeGestion gg = GroupeGestionImpl.getInstance();
	AlbumGestion ag = AlbumGestionImpl.getInstance();
	PaysGestion pg = PaysGestionImpl.getInstance();

	Vector vg = gg.getAllGroupes();
%>
<ul>
	<%
			for (int i = 0; i < vg.size(); i++) {
			ArtistBean gb = (ArtistBean) vg.get(i);
			PaysBean pb = pg.getPays(gb.getPaysId());
			Vector va = ag.getAlbumsGroupe(gb.getId());
	%>
	<li><%=gb.getNom()%> <i>(<%=pb.getNom()%>)</i></li>
	<ul>
		<%
					for (int j = 0; j < va.size(); j++) {
					ReleaseBean ab = (ReleaseBean) va.get(j);
		%>
		<li><%=ab.getAnnee()%> <%=ab.getNom()%></li>
		<%
		}
		%>
	</ul>
	<%
	}
	%>
</ul>

<br />
<jsp:include page="include/piedPage.jsp" flush="true" />
